﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace expression_evaluation
{
    public class Priority
    {
        public static int GetPriority(char opt)
        {
            switch (opt)
            {
                case '*':
                    return 2;
                case '/':
                    return 2;
                case '+':
                    return 1;
                case '-':
                    return 1;
                case '(':
                    return 0;
                default:
                    return -1;
            }
        }
    }
}
